
// #ifndef VUE3
import Vue from 'vue'
import App from './App'
// 时间格式化
const dayjs = require('dayjs');
var duration = require('dayjs/plugin/duration')
dayjs.extend(duration)
Vue.prototype.$dayjs = dayjs
import 'dayjs/locale/zh-cn';
dayjs.locale('zh-cn');

import uiEcharts from '@/uni_modules/ui-echarts'
Vue.use(uiEcharts)

// import uvUI from '@climblee/uv-ui'
// Vue.use(uvUI);

import {gPrice, compareArrays} from '@/utils/utils.js'
Vue.prototype.gPrice = gPrice
Vue.prototype.compareArrays = compareArrays

// 图片公共方法
import {img ,img_2} from '@/utils/img_path.js'
Vue.prototype.$img_path = img;
Vue.prototype.$img_base_url = img_2
// import 'mui-player/dist/mui-player.min.css'

import navbar from './components/navbar/navbar.vue'
Vue.component('navbar',navbar)

import tarbar from '@/components/Tarbar/Tarbar.vue'
Vue.component('tarbar',tarbar)

Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
import App from './App.vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif